home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / pic_tc.zip / PIC_TC.H < prev   
Text File  |  1990-05-24  |  2KB  |  45 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  *    PIC.H     Prototype declarations for PIC subroutines.                  *
  4.  *              (c) CSH Services, 1990                                       *
  5.  *                                                                           *
  6.  *    NOTE:  This program must be included in any program that uses the      *
  7.  *           library.                                                        *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11.     /*OPENING & CLOSING PIC FILE*/
  12.     int pic_open(char *filepath);        /*opens PIC file & initialises*/
  13.     int pic_close(void);             /*terminates plot & closes file*/
  14.  
  15.        /*PRIMITIVES*/
  16.     int pic_pu_move_abs(float x,float y);    /*absolute move with pen up*/
  17.     int pic_pu_move_rel(float x,float y);    /*relative move with pen up*/
  18.     int pic_pd_move_abs(float x,float y);    /*absoulte move with pen down*/
  19.     int pic_pd_move_rel(float x,float y);    /*relative move with pen down*/
  20.  
  21.     /*GENERAL DRAWING APPEARANCE*/
  22.     int pic_set_colour(int col);        /*set drawing colour*/
  23.     int pic_set_font(int type);         /*set character font*/
  24.     int pic_set_linetype(int type);        /*set line type*/
  25.     int pic_set_cs(float x,float y);        /*set character size*/
  26.     int pic_set_sp(int x1,int y1,
  27.              int x2,int y2);        /*set scaling points*/
  28.     int pic_set_scale(float xmin,float xmax,
  29.                 float ymin,float ymax); /*set drawing scale*/
  30.  
  31.     /*DRAWING COMMANDS*/
  32.     int pic_draw_rectangle(float x1,float y1, /*draw rectangle*/
  33.                   float x2,float y2);
  34.     int pic_draw_line(float x1,float y1,    /*draw line*/
  35.                 float x2,float y2);
  36.     int pic_draw_block(float x1,float y1,    /*draw filled rectangle*/
  37.                  float x2,float y2);
  38.     int pic_draw_circle(float x1,float y1,    /*draw circle*/
  39.                   float r);
  40.     int pic_draw_text(char *text,int r,    /*write text string*/
  41.                  int j);
  42.  
  43. /*****************************************************************************/
  44.  
  45.